package com.top.mall.entity

import com.module.lemlin.http.HttpResponseData

data class CartListResponse(
    val data: CartListData
) : HttpResponseData()

data class CartListData(
    val cartList: MutableList<CartList> = mutableListOf()
)

data class CartList(
    val active_price: String,
    val active_type: Int,
    val cart_id: Int,
    val goods_id: Int,
    val goods_name: String,
    var goods_num: Int,
    val goods_price: String,
    val image: String,
    val reduce_price: String? = null,
    val warehouse_goods_num: Int,
) {
    var isSelected: Boolean = false
}

data class CartAddResponse(
    val data: String
) : HttpResponseData() {
    var position: Int = -1
    var cart_id: Int = 0
    var goods_num: Int = 0
}

data class CartChangeNumResponse(
    val data: Any
) : HttpResponseData() {
    var position: Int = -1
    var cart_id: Int = 0
    var goods_num: Int = 0
}

data class CartDeleteResponse(
    val data: Any
) : HttpResponseData() {
    var position: Int = -1
}
